<?php 
  include_once 'global.php';
  //echo "xx";
 // include_once './common/myweibofunction.php';
   $c = new WeiboClient( WB_AKEY , WB_SKEY , $_SESSION['last_key']['oauth_token'] , $_SESSION['last_key']['oauth_token_secret']  );
   $weiboC=$c->user_timeline(1,20,$weiboID);
   $myweibo=$c->show_user($weiboID);
   //print_r($xx);
//print_r($myweibo);
  $frid=$c->weeklytopics();
  //print_r($frid);
  //$xx=$c->public_timeline();
  //print_r($xx);
  $smarty->assign('myweibo',$myweibo);
  $smarty->assign('weiboC',$weiboC);
  $smarty->display('weibo.html');
?>
